package com.sikaryofficial.auth.form;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;

/**
 * 用户登录对象
 *
 * @author qinjinyuan
 */
public class LoginH5Body {
    /**
     * 扫码方式 注册
     * <p>
     * evaluateType=scan_code
     */
    private String evaluateType;
    /**
     * ISO国家代码
     */
    private String isoCountryCode;
    /**
     * 用户名
     */
    private String username;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 邮箱地址
     */
    @Email(regexp = "[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+", message = "email format error.")
    private String emailAddress;
    /**
     * 邮箱验证码
     */
    private String captchaCode;
    /**
     * 姓
     */
    private String lastName;
    /**
     * 名
     */
    private String firstName;
    /**
     * 昵称
     */
    @Pattern(regexp = "^[a-zA-Z][a-zA-Z0-9_\\s]*$", message = "Nick name must start with a letter and can only be letters, numbers, and a hyphen")
    @Length(max = 50, message = "nickName length must be less than 50")
    private String nickName;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 电话号码
     */
    private String phoneNumber;

    private String registerIp;

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getIsoCountryCode() {
        return isoCountryCode;
    }

    public void setIsoCountryCode(String isoCountryCode) {
        this.isoCountryCode = isoCountryCode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String getCaptchaCode() {
        return captchaCode;
    }

    public void setCaptchaCode(String captchaCode) {
        this.captchaCode = captchaCode;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEvaluateType() {
        return evaluateType;
    }

    public void setEvaluateType(String evaluateType) {
        this.evaluateType = evaluateType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

}
